{form editForm}
<div style="float:left;width: 47%;" class="block" id="taskDetails">
	<h2>{if $form[id]->value == ''}Nový úkol{else}Upravit úkol: {$form[name]->value}{/if}</h2>
<table>
		{var $leftColumn = array('name','milestone_id','worker_id','start','deadline','public','task_type_id','task_priority_id','task_status_id','description')}
		{foreach $leftColumn as $line}
	<tr><th>{label $line /}</th><td>{input $line}</td></tr>
		{/foreach}

</table>
</div>
<div style="float:right; width:47%" class="block" id="taskPrerequisites">
		<h2>{label prerequisites /}</h2>
		<div id="tasklist">{input prerequisites}</div>
</div>
<div class="clear"></div>
<div class="block center">
	{ifset $edit}{input id}{/ifset}
	{input send}
</div>
{/form}
<script type="text/javascript" src="{$basePath}/js/task.edit.js"></script>